﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Show_LED_New
{
    public partial class MainButton : PictureBox
    {
        public string left_to;
        public string up_to;
        public string down_to;
        public string right_to;
        public Form enter_view=null;

        Graphics g;
        System.Drawing.SizeF mysize=new SizeF();

        // 上下左右的指向值
        public MainButton()
        {
            InitializeComponent();
            g = this.CreateGraphics();
            
            mysize.Width = this.Width;
            mysize.Height = this.Height;
            this.Scale(mysize);
        }

        public void button_selected()
        {
            //this.BackColor = System.Drawing.Color.Red;

            this.BorderStyle = BorderStyle.FixedSingle;
        }

        public void button_cancel()
        {
            this.BorderStyle = BorderStyle.None;
        }

        private void MainButton_Load(object sender, EventArgs e)
        {
            
        }
    }
}
